package sy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.IotEntranceURIDaoI;
import sy.model.IotEntranceURI;
import sy.service.IotEntranceURIServiceI;
@Service("iotEntranceURIService")
public class IotEntranceURIServiceImpl implements IotEntranceURIServiceI{
	@Autowired
	IotEntranceURIDaoI iotEntranceURIDao;

	@Override
	public void save(IotEntranceURI iotEntranceURI) {
		// TODO Auto-generated method stub
		iotEntranceURIDao.save(iotEntranceURI);
	}

	@Override
	public void update(IotEntranceURI iotEntranceURI) {
		// TODO Auto-generated method stub
		iotEntranceURIDao.update(iotEntranceURI);
	}

	@Override
	public void delete(List<Integer> ids) {
		// TODO Auto-generated method stub
		iotEntranceURIDao.delete(ids);
	}

	@Override
	public List<IotEntranceURI> list() {
		// TODO Auto-generated method stub
		return iotEntranceURIDao.list();
	}

	@Override
	public List<IotEntranceURI> listIotEntranceURIByKey(String key) {
		// TODO Auto-generated method stub
		return iotEntranceURIDao.listIotEntranceURIByKey(key);
	}

	@Override
	public IotEntranceURI getIotEntranceURIById(Integer id) {
		// TODO Auto-generated method stub
		return iotEntranceURIDao.getIotEntranceURIById(id);
	}
	
	@Override
	public IotEntranceURI getIotEntranceURIByCode(String uniqueCode){
		return iotEntranceURIDao.getIotEntranceURIByCode(uniqueCode);
	}
}
